from app import create_app, db, cli, config
from app.models import User, News
from flask_login import login_user, current_user

app = create_app()
cli.register(app)

@app.shell_context_processor
def make_shell_context():
    return {'Config': config.Config, 'db': db, 'current_user': current_user, 'User': User, 'News': News,
            'login_user': login_user}
